Lagrange's multiplier of two side conditions